﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://1stjs.googlecode.com/svn/trunk/fw4/" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>F.cchar演示</title>
<script type="text/javascript" src="1st.js"></script>
<script type="text/javascript" src="1st.stroknum.js"></script>
</head>
<body>
<input type="text" /><input type="button" value="笔划查询" onclick="getbh(this.previousSibling.value)" />

<script type="text/javascript">
function getbh(cstr){
	if(cstr==""){
		return alert("请输入要查询的汉字");	
	}
	cstr.split('').each(function(s){
		alert('“'+s+'”的笔划数是:'+F.strokenum(s));
	})
}
</script>
</body>
</html>